package com.libre.auth.controller;

import com.libre.common.base.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/")
@RestController
public class LoginController extends BaseController {

//    @Autowired
//    private LoginService loginService;
//
//    @PostMapping("/login")
//    public Result login(@RequestBody User user, HttpServletRequest request) {
//        JSONObject login = loginService.login(user, request);
//        return new ResultUtil().setData(login);
//    }
//
//    @PostMapping("/logout")
//    public Result logout(@RequestBody User user, HttpServletRequest request) {
//        loginService.logout(user, request);
//        return new ResultUtil().setSuccessMsg("登出成功");
//    }

}

